﻿using System;
using System.Collections.Generic;

namespace FoosballEye.Model
{
    public class Player
    {
        public Player()
        {
            PlayerHistory = new HashSet<PlayerHistory>();
        }

        // Primitive properties
        public int Id { get; set; }
        public string Login { get; set; }
        public byte[] Picture { get; set; }
        public int LodzOfficeRoomId { get; set; }
        public int AccountPoints { get; set; }     
        public bool IsAdmin { get; set; }
        public string InsertUser { get; set; }
        public DateTime InsertDate { get; set; }
        public string UpdateUser { get; set; }
        public DateTime? UpdateDate { get; set; }
        public bool Deleted { get; set; }

        public virtual LodzOfficeRoom LodzOfficeRoom { get; set; }
        public ICollection<PlayerHistory> PlayerHistory { get; set; }
    }
}
